package esb.logger;

import jpa.entities.ClientBestelling;

import org.mule.api.transformer.TransformerException;
import org.mule.transformer.AbstractTransformer;

public class OptimusPrime extends AbstractTransformer {

	public String productSoort = "";
	public String getProductSoort() {
		return productSoort;
	}
	public void setProductSoort(String productSoort) {
		this.productSoort = productSoort;
	}
	@Override
	protected ClientBestelling doTransform(Object src, String enc) throws TransformerException {
		if (src instanceof ClientBestelling) {
			return (ClientBestelling)src;
		} else {
			throw new TransformerException(this,
					new javax.xml.transform.TransformerException(
							"Alleen ClientBestelling word geaccepteerd"));
		}
	}
}
